package com.muyu.system.mapper;

import java.util.List;
import com.muyu.system.domain.DanmoShoppingCategory;
import com.muyu.system.domain.DanmoShoppingSubcategory;

/**
 * 商品分类Mapper接口
 * 
 * @author yangle
 * @date 2024-09-26
 */
public interface DanmoShoppingCategoryMapper 
{
    /**
     * 查询商品分类
     * 
     * @param id 商品分类主键
     * @return 商品分类
     */
    public DanmoShoppingCategory selectDanmoShoppingCategoryById(Long id);

    /**
     * 查询商品分类列表
     * 
     * @param danmoShoppingCategory 商品分类
     * @return 商品分类集合
     */
    public List<DanmoShoppingCategory> selectDanmoShoppingCategoryList(DanmoShoppingCategory danmoShoppingCategory);

    /**
     * 新增商品分类
     * 
     * @param danmoShoppingCategory 商品分类
     * @return 结果
     */
    public int insertDanmoShoppingCategory(DanmoShoppingCategory danmoShoppingCategory);

    /**
     * 修改商品分类
     * 
     * @param danmoShoppingCategory 商品分类
     * @return 结果
     */
    public int updateDanmoShoppingCategory(DanmoShoppingCategory danmoShoppingCategory);

    /**
     * 删除商品分类
     * 
     * @param id 商品分类主键
     * @return 结果
     */
    public int deleteDanmoShoppingCategoryById(Long id);

    /**
     * 批量删除商品分类
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDanmoShoppingCategoryByIds(Long[] ids);

    /**
     * 批量删除商品子分类
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDanmoShoppingSubcategoryByCategoryIds(Long[] ids);
    
    /**
     * 批量新增商品子分类
     * 
     * @param danmoShoppingSubcategoryList 商品子分类列表
     * @return 结果
     */
    public int batchDanmoShoppingSubcategory(List<DanmoShoppingSubcategory> danmoShoppingSubcategoryList);
    

    /**
     * 通过商品分类主键删除商品子分类信息
     * 
     * @param id 商品分类ID
     * @return 结果
     */
    public int deleteDanmoShoppingSubcategoryByCategoryId(Long id);
}
